package main

import (
	"fmt"
	"reflect"
)

func reflectEle(arg interface{}) {
	defer fmt.Println("================")
	fmt.Println("type :", reflect.TypeOf(arg))
	fmt.Println("value :", reflect.ValueOf(arg))
}

func main() {

	var FloatNum float64 = 1.23456
	reflectEle(FloatNum)

	var IntNum int = 10
	reflectEle(IntNum)

	var StrChar string = "Alen"
	reflectEle(StrChar)

	var Bool bool = true
	reflectEle(Bool)

	var Array []int = []int{1, 2, 3, 4, 5}
	reflectEle(Array)

	var Map map[string]string = map[string]string{"name": "alen", "age": "18"}
	reflectEle(Map)

	var Slice []string = []string{"a", "b", "c"}
	reflectEle(Slice)

}
